package data

//判断数组中是否存在某个数
func ContainUint(ids []uint64, key uint64) bool {
	for _, id := range ids {
		if id == key {
			return true
		}
	}
	return false
}

//判断数组中是否存在某个数
func ContainInt(ids []int, key int) bool {
	for _, id := range ids {
		if id == key {
			return true
		}
	}
	return false
}

func ContainString(strs []string, key string) bool {
	for _, str := range strs {
		if str == key {
			return true
		}
	}
	return false
}
